Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JController::factory() and createEnvironmentArray() as discussed in joomla-dev-cms group #193

Closed
wants to merge 1 commit into from
Closed

JController::factory() and createEnvironmentArray() as discussed in joomla-dev-cms group #193

wants to merge 1 commit into from

Conversation

dgasparri
Copy link

Added to JController the following methods:

  1. factory()
  2. createEnvironmentArray()
  3. setTask($task)

Changed execute($task) that if no task is passed, it executes the
$this->task (which is set also by the factory method)

See discussion https://groups.google.com/forum/?fromgroups#!topic/joomla-dev-cms/7tjVkzc08Ks (Object oriented components , any plan?)

2012-04-19 by Duccio Gasparri duccio.gasparri@gmail.com
Change-Id: I2a4ded062856670e364128f3cb74716b84b23eea

1) factory()
2) createEvenrinmentArray()
3) setTask($task)

Changed execute($task) that if no task is passed, it executes the
$this->task (which is set also by the factory method)

2012-04-19 by Duccio Gasparri <duccio.gasparri@gmail.com>
Change-Id: I2a4ded062856670e364128f3cb74716b84b23eea
@dgasparri
Copy link
Author

getInstance() should also be cleaned and simplified, as it does stuff proper of a factory pattern and factory method (choosing which class to load). Not knowing if there was backward compatibility issues, I left it like that.

Part of the "reasoning" in getInstance() about the environment variables ($_REQUEST task, controller, option, and so on) are left intact in the getInstance(), but were duplicated cleared and streamlined into the createEnvironmentArray() method.

public static function createEnvironmentArray($option = null, $component = null, $controller = null, $task = null, $format = null, $basePath = null)
{

$jinput = JApplication::getInput();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That method doesn't exist. Correct would be JFactory::getApplication()->input.

@phproberto
Copy link
Contributor

I'm closing this as it's not mergeable and 1 year old. Feel free to open if you update it and are still interested in get it merged.

Thanks for contributing.

@phproberto phproberto closed this Oct 3, 2013
wilsonge pushed a commit that referenced this pull request Jun 4, 2017
* Added PlgFileSystemLocal test

* Moved LocalAdapterTest to plugins/filesystem/local

* Added unit test for PlgFileSystemLocal

* Updated description
hans2103 pushed a commit to hans2103/joomla-cms that referenced this pull request Nov 18, 2020
Remove double underline in menu (top position)
Remove underline for span items in menu
Add margin to nav and search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants